package org.secangkirkopipanas.gxtcore.server.dao;

import java.util.List;

import org.hibernate.SessionFactory;
import org.secangkirkopipanas.gxtcore.common.exception.DataNotFoundException;
import org.secangkirkopipanas.gxtcore.server.domain.SystemUser;

public interface ISystemUserDAO {

	public SessionFactory getSessionFactory();

	public void setSessionFactory(SessionFactory sessionFactory);

	public SystemUser get(String username);

	public SystemUser get(String username, String pwdDigest);

	public List<SystemUser> getForList();

	public void add(SystemUser systemUser);

	public void delete(SystemUser systemUser) throws DataNotFoundException;

	public void delete(String username) throws DataNotFoundException;

	public int getTotalCount();

}